package com.thinkmore.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.thinkmore.mybatisplus.entity.AutoFill;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AutoFillMapper extends BaseMapper<AutoFill> {
    /**
     * filter = false则会进行动态表名替换，否则不会
     * @param wrapper
     * @return
     */
    //@SqlParser(filter = false)
    @Select("select * from auto_fill ${ew.customSqlSegment}")
    List<AutoFill> customSql(@Param(Constants.WRAPPER) Wrapper<AutoFill> wrapper);
}
